package cool.gaogao.test;




import cool.gaogao.transactional.config.AccountConfig;
import cool.gaogao.transactional.service.AccountService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author 高山青
 * @Date 2021/12/31  -   23:30
 */
@RunWith(SpringJUnit4ClassRunner.class) //单元测试框架
@ContextConfiguration(classes= AccountConfig.class) //加载配置文件
public class Junit4 {
	@Autowired
	private AccountService accountService;

	@Test
	public void test(){
		accountService.accountMoney();
	}
}
